home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
2108
/
2108.xpi
/
content
/
edit.xul
< prev
next >
Wrap
Extensible Markup Language
|
2009-08-19
|
4KB
|
90 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://stylish/skin/edit.css" type="text/css"?>
<!DOCTYPE dialog [
<!ENTITY % edit SYSTEM "chrome://stylish/locale/edit.dtd">
%edit;
]>
<dialog
id="stylish"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons="accept,cancel,extra1,extra2"
persist="screenX screenY width height sizemode"
width="600"
height="400"
onload="init()"
onunload="dialogClosing()"
ondialogaccept="return save()"
ondialogcancel="return cancelDialog()"
ondialogextra2="preview();"
ondialogextra1="switchToInstall();"
buttonlabelaccept="&save;"
buttonaccesskeyaccept="&save.ak;"
buttonlabelextra2="&preview;"
buttonaccesskeyextra2="&preview.ak;"
buttonlabelextra1="&switchtoinstall;"
buttonaccesskeyextra1="&switchtoinstall.ak;">
<script type="application/javascript" src="edit.js"/>
<script type="application/javascript" src="common.js"/>
<script type='application/javascript' src='chrome://diavolo/content/tokeniser.js'/>
<script type='application/javascript' src='chrome://diavolo/content/highlighter.js'/>
<script type='application/javascript' src='chrome://diavolo/content/editor.js'/>
<script type='application/javascript' src='chrome://diavolo/content/grammar.js'/>
<script type='application/javascript' src='chrome://diavolo/content/selector.js'/>
<script type='application/javascript' src='chrome://diavolo/content/codecompletion.js'/>
<script type="application/javascript" src="chrome://itsalltext/content/API.js"/>
<stringbundle id="strings" src="chrome://stylish/locale/edit.properties"/>
<keyset>
<key id="save-key" modifiers="control" key="S" oncommand="save()"/>
<key id="find-key" modifiers="control" key="F" oncommand="document.getElementById('findbar')._findField.focus()"/>
</keyset>
<vbox flex="1">
<grid>
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row align="center">
<label control="name" accesskey="&name.ak;">&name;</label>
<textbox id="name" flex="1"/>
</row>
<row align="center">
<label control="tags" accesskey="&tags.ak;">&tags;</label>
<textbox id="tags" flex="1"/>
</row>
</rows>
</grid>
<textbox id="update-url" style="display:none"/>
<hbox id="editor-tools">
<button label="&insert;" accesskey="&insert.ak;" type="menu">
<menupopup>
<menuitem id="insert-html" label="&htmlnamespace;" accesskey="&htmlnamespace.ak;" oncommand="insertCodeAtStart(CSSHTMLNS);"/>
<menuitem id="insert-xul" label="&xulnamespace;" accesskey="&xulnamespace.ak;" oncommand="insertCodeAtStart(CSSXULNS);"/>
<menuitem id="insert-chrome-folder" label="&chromefolder;" accesskey="&chromefolder.ak;" oncommand="insertChromePath()"/>
<menuitem id="insert-data-uri" label="&dataURI;" accesskey="&dataURI.ak;" oncommand="insertDataURI()"/>
</menupopup>
</button>
<button id="itsalltext" label="&openintexternaleditor;" accesskey="&openintexternaleditor.ak;" itsalltext-control="internal-code" itsalltext-extension=".css" style="display: none;"/>
<checkbox id="wrap-lines" label="&wraplines;" accesskey="&wraplines.ak;" oncommand="changeWordWrap(this.checked)" style="display: none"/>
</hbox>
<deck flex="1">
<vbox>
<textbox id="internal-code" multiline="true" flex="1"/>
<findbar id="findbar" browserid="internal-code"/>
</vbox>
<sourceeditor id="diavolo-code" grammarURL="chrome://diavolo/content/css.xml"/>
</deck>
<vbox id="errors" style="display:none;"/>
</vbox>
</dialog>